package com.yango.staService.client;

import com.yango.commonutil.result.Result;
import com.yango.staService.client.impl.CourseClientImpl;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Li.Ding.yin
 * @create 2021年08月05日9:37-星期四
 * @role 远程调用service-teach服务
 */
@Component
@FeignClient(name = "service-teach", fallback = CourseClientImpl.class)
public interface CourseClient {

    //统计每天新增课程数
    @ApiOperation(value = "统计每天新增课程数")
    @GetMapping("/teach/course/getSaveCourseCount/{day}")
    public Result getSaveCourseCount(@ApiParam(name = "day", value = "统计日期", required = true)
                                     @PathVariable("day") String day);
}
